package com.foreknow.protals.dto;

import com.foreknow.protals.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

@Data
@EqualsAndHashCode(callSuper = false)
public class PmsBrandDto {
    @NotEmpty
    @ApiModelProperty(value = "品牌名称",required = true)
    private String name;
    @ApiModelProperty(value = "品牌首字母")
    private String firstLetter;
    @NotEmpty
    @ApiModelProperty(value = "品牌logo",required = true)
    private String logo;
    @ApiModelProperty(value = "品牌大图")
    private String bigPic;
    @ApiModelProperty(value = "品牌故事")
    private String brandStory;
    @Min(value = 0)
    @ApiModelProperty(value = "排序")
    private Integer sort;
    @FlagValidator(value = {"0","1"},message = "显示状态不正确")
    @ApiModelProperty(value = "是否显示")
    private Integer showStatus;
    @FlagValidator(value = {"0","1"},message = "品牌制造商状态不正确")
    @ApiModelProperty(value = "是否为品牌制造商：0->不是；1->是")
    private Integer factoryStatus;
}
